﻿using AiShow.Common;
using AiShow.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiShow.IBLL
{
    /// <summary>
    /// 用户信息业务管理接口
    /// </summary>
    public interface IUserManager
    {
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        OperResult<TBUsers> GetUser(int userId);

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="user">用户信息</param>
        /// <returns></returns>
        OperResult<TBUsers> EditWithoutAvatar(TBUsers user);

        /// <summary>
        /// 编辑头像
        /// </summary>
        /// <param name="user">用户信息</param>
        /// <returns></returns>
        OperResult<TBUsers> EditAvatar(TBUsers user);
    }
}
